package com.ruoyi.system.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 安全承诺卡
 * @since 2023-03-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
//@TableName("prevention_safety_promise")
@ApiModel(value="PreventionSafetyPromise对象", description="安全承诺卡")
public class PreventionSafetyPromise implements Serializable {
    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    private Integer id;

    @ApiModelProperty(value = "附件id集合")
    private String safetyFileId;

    @ApiModelProperty(value = "编号")
    private String safetyNumber;

    @ApiModelProperty(value = "所属单元")
    private String safetyUnit;

    @ApiModelProperty(value = "承诺人ID")
    private String safetyAcceptorId;

    @ApiModelProperty(value = "承诺人名称")
    private String safetyAcceptorName;

    @ApiModelProperty(value = "主管领导ID")
    private String safetyLeaderId;

    @ApiModelProperty(value = "主管领导名称")
    private String safetyLeaderName;

    @ApiModelProperty(value = "岗位ID")
    private String safetyJobId;

    @ApiModelProperty(value = "岗位名称")
    private String safetyJobName;

    @ApiModelProperty(value = "承诺日期")
    private String safetyDate;

    @ApiModelProperty(value = "承诺事项")
    private String safetyMatters;

    @ApiModelProperty(value = "创建人")
    private String createUser;

    @ApiModelProperty(value = "更新人")
    private String updateUser;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    /**
     * 文件id
     */
    private Integer fileId;
    /**
     * 文件名称
     */
    private String fileName;
    /**
     * 文件地址
     */
    private String fileUrl;

    private List<PreventionSafetyPromiseFile> safetyPromiseFileList;

}
